package models

type Exercise struct {
	Id        int    `xorm:"not null pk autoincr INT"`
	GroupId   int    `xorm:"not null default 0 comment('习题组ID') index(group_id) INT"`
	Title     string `xorm:"not null default '' comment('题干') VARCHAR(550)"`
	Type      int    `xorm:"not null default 10 comment('题型 10-单选 20-多选 30-判断') index(group_id) TINYINT"`
	Intro     string `xorm:"not null default '' comment('描述') VARCHAR(200)"`
	Options   string `xorm:"comment('题目选项') JSON"`
	Answer    string `xorm:"not null default '' comment('正确答案') VARCHAR(20)"`
	Analysis  string `xorm:"not null default '' comment('答案解析') VARCHAR(200)"`
	Difficult int    `xorm:"not null default 3 comment('难度') TINYINT"`
	Score     int    `xorm:"not null default 2 comment('分数') TINYINT"`
	CreatedAt string `xorm:"created"`
	UpdatedAt string `xorm:"updated"`
	DeletedAt string `xorm:"deleted"`
}
